//
//  SJNetWorkTool.h
//  Recycling
//
//  Created by jzd on 2018/5/22.
//  Copyright © 2018年 宋佳. All rights reserved.
//

#import "AFHTTPSessionManager.h"

typedef NS_ENUM(NSUInteger, HttpMethod) {
    GET,
    POST,
};

@interface SJNetWorkTool : AFHTTPSessionManager
/**
 创建网络请求工具类的单例
 */
+ (instancetype)sharedTool;
/**
 创建请求方法
 */
- (void)requestWithURLString: (NSString *)URLString
                  parameters: (NSDictionary *)parameters
                      method: (HttpMethod)method
                    callBack: (void(^)(id responseObject, NSError *error))callBack;

- (void)loginWithURLString: (NSString *)URLString
                  parameters: (NSDictionary *)parameters
                    callBack: (void(^)(id responseObject, NSError *error))callBack;

-(void)uploadPhoto:(NSArray *)photos WithURLString: (NSString *)URLString
        parameters: (NSDictionary *)parameters
          callBack: (void(^)(id responseObject, NSError *error))callBack;


@end
